<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>保运单列表</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <script src="/js/jquery-2.1.0.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <style type="text/css">
        td, th {
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <h3 style="text-align: center">保运单列表</h3>
    <table border="1" class="table table-bordered table-hover">
        <tr class="success">
            <th>编号</th>
            <th>装船港</th>
            <th>目的港</th>
            <th>价格条件</th>
            <th>运输方式</th>
            <th>总箱数</th>
            <th>总体积</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${list}" var="ep" varStatus="vs">
            <tr>
                <td>${vs.index + 1}</td>
                <td>${ep.shipmentPort}</td>
                <td>${ep.destinationPort}</td>
                <td>${ep.priceCondition}</td>
                <td>${ep.transportMode}</td>
                <td>${ep.boxNums}</td>
                <td>${ep.measurements}</td>
                <td>${ep.state==2?"待审核":ep.state==3?"审核成功":"审核失败"}</td>
                <td><a class="btn btn-default btn-sm" href="/export/detail?id=${ep.eid}">查看</a></td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
